package com.gitee.wsl.prism4j

/**
 * Basic class to locate grammars
 *
 * @see Prism4j.Prism4j
 */
interface GrammarLocator {
    fun grammar(prism4j: Prism4j, language: String): Prism4j.Grammar?

    /**
     * @return collection of languages included into this locator
     * @since 1.1.0
     */
    fun languages(): Set<String>
}
